package com.yc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedOperationParameter;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author zwei
 * @create 2024-08-07 15:33
 */
//@ManagedResource(objectName = "a:type=Account")
//@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode
@TableName("accounts")
public class Account implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer accountid;
    private double balance;
    private String email;
}
